package com.example.lib_common.view.adapter

import com.example.lib_common.view.entity.BannerEntity
import com.example.lib_image.glide.glide.GlideImgLoader
import com.youth.banner.adapter.BannerImageAdapter
import com.youth.banner.holder.BannerImageHolder

class ImageBannerAdapter(list:MutableList<BannerEntity>) :BannerImageAdapter<BannerEntity>(list) {
    override fun onBindView(
        holder: BannerImageHolder,
        data: BannerEntity,
        position: Int,
        size: Int,
    ) {
        GlideImgLoader.loadResImage(holder.imageView,data.resId,holder.imageView)
    }

}